<?php


namespace app\model\coach;


use app\model\partner\UserPartnerModel;
use think\Model;

class CoachMoneyDetailModel extends Model
{
    protected $name = 'coach_money_detail';
    protected $autoWriteTimestamp = true;

    public function coach()
    {
        return $this->hasOne(UserCoachModel::class, 'id', 'user_id')->withTrashed()->bind(['mobile', 'username']);
    }
}